package org.edu.service.impl;

import java.util.List;

import org.edu.dao.TeacherDao;
import org.edu.model.Teacher;
import org.edu.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {

	@Autowired
	TeacherDao teacherDao;
	
	public TeacherServiceImpl() {
		// TODO Auto-generated constructor stub
	}

	@Transactional
	public List<Teacher> teachers() {
		return teacherDao.teachers();
	}

}
